package records

import (
	"github.com/golib/mysql"
)

const RecordNameOnlineStudentQuestion = "online_student_question"

func init() {
	var r = &OnlineStudentQuestion{}
	mysql.RegisterRecord(r.Name(), r)
}

type OnlineStudentQuestion struct {
	StudentQuestionId int    `primary:"true" modify:"false" json:"studentQuestionId" form:"studentQuestionId" column:"student_question_id"`
	StudentId         int    `json:"studentId" form:"studentId" column:"student_id" modify:"true"`
	QuestionId        int    `json:"questionId" form:"questionId" column:"question_id" modify:"true"`
	TermId            int    `json:"termId" form:"termId" column:"term_id" modify:"true"`
	HomeworkId        int    `form:"homeworkId" column:"homework_id" modify:"true" json:"homeworkId"`
	CourseId          int    `json:"courseId" form:"courseId" column:"course_id" modify:"true"`
	ClassId           int    `json:"classId" form:"classId" column:"class_id" modify:"true"`
	Source            int    `json:"source" form:"source" column:"source" modify:"true"`
	Answer            string `form:"answer" column:"answer" modify:"true" json:"answer"`
	IsRight           int    `json:"isRight" form:"isRight" column:"is_right" modify:"true"`
	ImageOrigin       string `column:"image_origin" modify:"true" json:"imageOrigin" form:"imageOrigin"`
	ImageCorrection   string `json:"imageCorrection" form:"imageCorrection" column:"image_correction" modify:"true"`
	CommentVoice      string `json:"commentVoice" form:"commentVoice" column:"comment_voice" modify:"true"`
	Comment           string `column:"comment" modify:"true" json:"comment" form:"comment"`
	Score             int    `form:"score" column:"score" modify:"true" json:"score"`
	CorrectStatus     int    `column:"correct_status" modify:"true" json:"correctStatus" form:"correctStatus"`
	NeedCorrect       int    `modify:"true" json:"needCorrect" form:"needCorrect" column:"need_correct"`
	CreateTime        string `column:"create_time" modify:"false" json:"createTime" form:"createTime"`
	UpdateTime        string `json:"updateTime" form:"updateTime" column:"update_time" modify:"false"`
}

func (r *OnlineStudentQuestion) Name() string {
	return RecordNameOnlineStudentQuestion
}
